Historical updating oE attr_to_colors, Revision 1

attr_to_colors

include console.e 
namespace console 
public function attr_to_colors(integer attr_code) 

converts an attribute code to its foreground and background color components.

Parameters:
  1. attr_code : integer, an attribute code.
Returns:

A sequence, of two elements -- {fgcolor, bgcolor}

Example 1:
? attr_to_colors(92) --> {12, 5} 
See Also:

get_screen_char, colors_to_attr

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu